<?php
//Search interface.
//All Classes that search the database using the PHP system should implement this
//Search Interface.

interface Search {

	//Performs the search based on the provided criteria, storing the results in an instance variable
	public function query();
	
	// *Returns an array of the objects found by the search
	// Return Type: DataObject[]
 
	public function getAllResults();

	// Returns the result indexed by "index" in the stored result array	
	// Input Type: integer array $index
	// Return Type: DataObject
	public function getResult($index);
 
	//Sorts the returned data based on the specified field name.
	// Input Type: String array $fieldName
	// Return Type: DataObject
	public function sort($fieldName);

	// sets all search criteria and result sets to null 
	public function clear();

}
?>
